package com.zues.thread.create;

import lombok.extern.slf4j.Slf4j;

/**
 * 创建资源类  继承Thread
 *
 * @author zues
 * @date 12/7/2024 10:14 下午
 */
@Slf4j(topic = "c.MyThread")
public class MyThread extends Thread{

    public MyThread() {}

    public MyThread(String name) {
        super(name);
    }

    @Override
    public void run() {
        for (int i = 0; i < 50; i++) {
            log.info("{} : {}",Thread.currentThread().getName(),i);
        }
    }
}
